package br.com.pedido.www;

public class FornecedorAServicoPortTypeProxy implements br.com.pedido.www.FornecedorAServicoPortType {
  private String _endpoint = null;
  private br.com.pedido.www.FornecedorAServicoPortType fornecedorAServicoPortType = null;
  
  public FornecedorAServicoPortTypeProxy() {
    _initFornecedorAServicoPortTypeProxy();
  }
  
  public FornecedorAServicoPortTypeProxy(String endpoint) {
    _endpoint = endpoint;
    _initFornecedorAServicoPortTypeProxy();
  }
  
  private void _initFornecedorAServicoPortTypeProxy() {
    try {
      fornecedorAServicoPortType = (new br.com.pedido.www.FornecedorAServicoServiceLocator()).getFornecedorAServicoServicePort();
      if (fornecedorAServicoPortType != null) {
        if (_endpoint != null)
          ((javax.xml.rpc.Stub)fornecedorAServicoPortType)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
        else
          _endpoint = (String)((javax.xml.rpc.Stub)fornecedorAServicoPortType)._getProperty("javax.xml.rpc.service.endpoint.address");
      }
      
    }
    catch (javax.xml.rpc.ServiceException serviceException) {}
  }
  
  public String getEndpoint() {
    return _endpoint;
  }
  
  public void setEndpoint(String endpoint) {
    _endpoint = endpoint;
    if (fornecedorAServicoPortType != null)
      ((javax.xml.rpc.Stub)fornecedorAServicoPortType)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
    
  }
  
  public br.com.pedido.www.FornecedorAServicoPortType getFornecedorAServicoPortType() {
    if (fornecedorAServicoPortType == null)
      _initFornecedorAServicoPortTypeProxy();
    return fornecedorAServicoPortType;
  }
  
  public br.com.pedido.www.FornecedorAPrecoServicoResponse verificarPrecoMaterial(br.com.pedido.www.FornecedorAPrecoServicoRequest params) throws java.rmi.RemoteException{
    if (fornecedorAServicoPortType == null)
      _initFornecedorAServicoPortTypeProxy();
    return fornecedorAServicoPortType.verificarPrecoMaterial(params);
  }
  
  public br.com.pedido.www.FornecedorARequisicaoServicoResponse efetuarRequisicaoDeCompra(br.com.pedido.www.FornecedorARequisicaoServicoRequest params) throws java.rmi.RemoteException{
    if (fornecedorAServicoPortType == null)
      _initFornecedorAServicoPortTypeProxy();
    return fornecedorAServicoPortType.efetuarRequisicaoDeCompra(params);
  }
  
  
}